package com.ych.composite;

import java.util.List;

/**
 * Created by 灰灰 on 2017/7/10.
 */
public abstract class Employer {
    public List employers;
    public void printInfo() {
        System.out.println(name);
    }
    public List getEmployers() {
        return this.employers;
    }
    public abstract void add(Employer employer);
    public abstract void delete(Employer employer);
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
